package com.springcloud.client2lcn.web.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author liq
 * @Title: UserDao
 * @ProjectName lcn-demo
 * @Description: TODO
 * @date 2019-06-0409:15
 */
@Mapper
public interface UserDao {

    @Insert("INSERT INTO `user` (`username`, `password`, `name`) VALUES ( '${username}', '${password}', '${name}');")
    public int insert(@Param("name") String name, @Param("username") String username, @Param("password") String password);
}
